package com.luhuiguo.cms.server.web.filter;

import java.io.Serializable;
import java.util.List;

import javax.servlet.http.Cookie;

/**
 * 
 * @author LuHuiguo
 * @version $Id: PageInfo.java 144 2010-05-06 05:20:16Z luhuiguo@gmail.com $
 */
public class PageInfo implements Serializable {

    private static final long serialVersionUID = -8344235487254497325L;

    private int status;

    private String contentType;

    private List<String[]> responseHeaders;

    private List<Cookie> cookies;

    private byte[] body;

    public PageInfo() {
    }

    public PageInfo(int status, String contentType, List<String[]> responseHeaders, List<Cookie> cookies, byte[] body) {
        this.status = status;
        this.contentType = contentType;
        this.responseHeaders = responseHeaders;
        this.cookies = cookies;
        this.body = body;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public List<String[]> getResponseHeaders() {
        return responseHeaders;
    }

    public void setResponseHeaders(List<String[]> responseHeaders) {
        this.responseHeaders = responseHeaders;
    }

    public List<Cookie> getCookies() {
        return cookies;
    }

    public void setCookies(List<Cookie> cookies) {
        this.cookies = cookies;
    }

    public byte[] getBody() {
        return body;
    }

    public void setBody(byte[] body) {
        this.body = body;
    }
}
